﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

using CE.User;

public partial class _404 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            if (Request.Params["aspxerrorpath"] != null)
            {
                LogUserViewedHistory("Requested page: " + Request.Params["aspxerrorpath"].ToString());
            }
            else
            {
                LogUserViewedHistory(" No aspxerrorpath argument.");
            }
        }
    }

    private void LogUserViewedHistory(string Description)
    {
        UserViewHistoryDB _userviewdb = new UserViewHistoryDB();
        _userviewdb.LogViewedHistory("404", Request, "404 - " + Description);
    }
}
